package com.yj.exception;

public enum BusinessExceptionEnums implements BaseExceptionEnums {
    SUCCESS("0", "操作成功"),
    
    RESOURCE_LIST_ERR("11031", "获取资源列表失败"),
    RESOURCE_DETAIL_ERR("11032", "获取资源详情失败"),
    RESOURCE_SAVE_ERR("11033", "保存资源时发生异常"),
    RESOURCE_CANMODIFY_ERR("11034", "该资源在用,不能被修改"),
    RESOURCE_VIEW_ERR("11035", "获取资源视图失败"),
    NULL_OWNERID("11036","归属用户id不能为空"),
    
    SYSTEM_ERROR("99999", "系统异常");

    private String code;
    private String message;

    BusinessExceptionEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
